﻿using System;

namespace Ecobee.Net
{
	public class TimeDefaultConverter : IDefaultValueConverter
	{
		public object ConvertToComplexValue(object value)
		{
			object returnValue = null;

			if (value is string)
			{
				returnValue = (Time)((string)value);
			}
			else
			{
				returnValue = Time.Empty;
			}

			return returnValue;
		}
	}
}
